let obj = {
    name:'daxia',
    age:18
}
let map = new Map(Object.entries(obj));

console.log(map);
